﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar.Controls;
using DevComponents.DotNetBar.SuperGrid;
using AppCommon;

namespace SyncConfig.Dialog
{
    public partial class PickProcedure : BaseDialog
    {
        public DataRowView SelectedRow;
        public string CurrentCommand { get; set; }
        
        public PickProcedure()
        {
            InitializeComponent();
        }

        private void superGridControl1_RowDoubleClick(object sender, DevComponents.DotNetBar.SuperGrid.GridRowDoubleClickEventArgs e)
        {
            
                
                GridRow row=e.GridRow as GridRow;
                SelectedRow = row.DataItem as DataRowView;
                DialogResult = DialogResult.OK;
           
        }

        private void PickProcedure_Load(object sender, EventArgs e)
        {
            superGridControl1.PrimaryGrid.DataSource = ADOSyncConfig.GetAllProcedure();
           
        }
    }
}
